package com.triz.business.service.impl;

import java.util.List;
import com.triz.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.triz.business.mapper.IndustryDevelopmentMapper;
import com.triz.business.domain.IndustryDevelopment;
import com.triz.business.service.IIndustryDevelopmentService;

/**
 * 行业发展信息Service业务层处理
 * 
 * @author hlk
 * @date 2025-11-11
 */
@Service
public class IndustryDevelopmentServiceImpl implements IIndustryDevelopmentService 
{
    @Autowired
    private IndustryDevelopmentMapper industryDevelopmentMapper;

    /**
     * 查询行业发展信息
     * 
     * @param id 行业发展信息主键
     * @return 行业发展信息
     */
    @Override
    public IndustryDevelopment selectIndustryDevelopmentById(Long id)
    {
        return industryDevelopmentMapper.selectIndustryDevelopmentById(id);
    }

    /**
     * 查询行业发展信息列表
     * 
     * @param industryDevelopment 行业发展信息
     * @return 行业发展信息
     */
    @Override
    public List<IndustryDevelopment> selectIndustryDevelopmentList(IndustryDevelopment industryDevelopment)
    {
        return industryDevelopmentMapper.selectIndustryDevelopmentList(industryDevelopment);
    }

    /**
     * 新增行业发展信息
     * 
     * @param industryDevelopment 行业发展信息
     * @return 结果
     */
    @Override
    public int insertIndustryDevelopment(IndustryDevelopment industryDevelopment)
    {
        industryDevelopment.setCreateTime(DateUtils.getNowDate());
        return industryDevelopmentMapper.insertIndustryDevelopment(industryDevelopment);
    }

    /**
     * 修改行业发展信息
     * 
     * @param industryDevelopment 行业发展信息
     * @return 结果
     */
    @Override
    public int updateIndustryDevelopment(IndustryDevelopment industryDevelopment)
    {
        industryDevelopment.setUpdateTime(DateUtils.getNowDate());
        return industryDevelopmentMapper.updateIndustryDevelopment(industryDevelopment);
    }

    /**
     * 批量删除行业发展信息
     * 
     * @param ids 需要删除的行业发展信息主键
     * @return 结果
     */
    @Override
    public int deleteIndustryDevelopmentByIds(Long[] ids)
    {
        return industryDevelopmentMapper.deleteIndustryDevelopmentByIds(ids);
    }

    /**
     * 删除行业发展信息信息
     * 
     * @param id 行业发展信息主键
     * @return 结果
     */
    @Override
    public int deleteIndustryDevelopmentById(Long id)
    {
        return industryDevelopmentMapper.deleteIndustryDevelopmentById(id);
    }

}
